package com.jpa.lgt.service.impl;


import com.jpa.lgt.dao.UserRepository;
import com.jpa.lgt.entity.User;
import com.jpa.lgt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lgt
 * @time 2018/9/26
 * @description：
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserRepository userRepository;

    @Override
    public User userLogin(String account, String password) {
        return userRepository.findByAccountAndPassword(account, password);
    }
}
